package com.template.demo1.abs;

/**
 * 抽象类，不同的抽象方法需要子类来实现，相同的方法直接定义
 * 
 * @author dell
 * 
 */
public abstract class CaffeineBeverage {

	public final void prepareRecipe() {
		boilWater();
		brew();
		pourInCup();
		addCondiments();
	}

	public abstract void brew();

	public abstract void addCondiments();

	public void boilWater() {
		System.out.println("Boiling water");
	}

	public void pourInCup() {
		System.out.println("Pouring into cup");
	}
}
